<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title>Insert title here</title>
<script type="text/javascript">
function pager(p){
    window.location.href="/user/list?page=" + p	
}

</script>
</head>
<body>
  <h1>用户列表</h1>
  <div>
     <ul>
      <li>
             <span>id</span>-
             <span>用户名</span>-
             <span>密码</span>
         </li>
         
         <li th:each="user:${users}">
             <span th:text="${user.id}"></span>-
             <span th:text="${user.username}"></span>-
             <span th:text="${user.password}"></span>
         </li>
     </ul>
     <input type="button" onclick="pager(1)" value="上一页" />
     <input type="button" onclick="pager(2)" value="下一页" />
   </div>
</body>
</html>